package com.ashin.testshardingsphere;

import com.ashin.testshardingsphere.service.UserService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

import java.sql.SQLException;

@SpringBootApplication
public class TestShardingJDBCApplication {

	public static void main(String[] args) throws SQLException {
		ConfigurableApplicationContext context = SpringApplication.run(TestShardingJDBCApplication.class, args);

		UserService userService = context.getBean( UserService.class);
		System.out.println(userService.insertData());
	}

}
